package com.j1ay.forum.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.j1ay.forum.model.pojo.po.Question;

/**
 * @Author J1ay
 * @Date 2021/12/14 20:44
 * @Description
 */

public interface QuestionMapper extends BaseMapper<Question> {

    /**
     * 获取问题点赞总数
     * @return
     */
    int findAskPraiseSum();


    /**
     * 浏览量最多的问题
     * @return
     */
    Question findHotAsk();
}
